package com.zzyl.controller.web;

import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.controller.BaseController;
import com.zzyl.entity.Member;
import com.zzyl.service.MemberService;
import com.zzyl.vo.MemberVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MemberController extends BaseController {

    @Autowired
    private MemberService memberService;

    //分页
    @GetMapping("/c-user/page")
    public ResponseResult findByIdPage(String nickname, String phone , Integer pageNum , Integer pageSize){
        PageResponse<MemberVo> pageResponse = memberService.findByIdPage(nickname,phone,pageNum,pageSize);
        return success(pageResponse);
    }
}
